﻿namespace OneAdmin.Controllers
{
    using System;
    using System.Collections.Generic;
    using System.Collections.Specialized;
    using System.Linq;
    using System.Web;
    using System.Web.Mvc;

    using OneAdmin.Models;

    public class FrameController : Controller
    {
        /// <summary>
        /// 是
        /// </summary>
        /// <param name="tit"></param>
        /// <returns></returns>
        public ActionResult Nav3(string tit = "")
        {
            var list = new List<Nav>();
            list.Add(new Nav
            { 
                Tit = "系统设置",
                Url = Url.Action("Index", "Host")
            });


            // 选中
            var active = list.FirstOrDefault(x => x.Tit == tit);
            if (active != null)
            {
                active.Css = "list-group-item active";
            }

            return this.PartialView(list);
        }



        /// <summary>
        ///    标题
        /// </summary>
        /// <returns></returns>
        public ActionResult Titel3()
        {
            return this.PartialView();
        }
    }
}
